<template>
  <div class="container">
    <header class="header">
      <h1>自我介绍</h1>
    </header>
    <main class="main-content">
      <section class="intro-section">
        <div class="profile-container">
          <div class="profile-picture">
            <svg width="120" height="120" viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg">
              <circle cx="60" cy="45" r="30" stroke="#42b883" stroke-width="2" fill="#f0f8ff"/>
              <path d="M60 75C80 75 95 90 95 105H25C25 90 40 75 60 75Z" stroke="#42b883" stroke-width="2" fill="#f0f8ff"/>
              <circle cx="50" cy="40" r="5" fill="#333"/>
              <circle cx="70" cy="40" r="5" fill="#333"/>
              <path d="M45 55C55 65 65 65 75 55" stroke="#333" stroke-width="2" fill="none"/>
            </svg>
          </div>
          <div class="profile-info">
            <h2>我的基本信息</h2>
            <ul>
              <li><strong>姓名：</strong>张三</li>
              <li><strong>学号：</strong>20250612</li>
              <li><strong>专业：</strong>计算机科学与技术</li>
              <li><strong>年级：</strong>2025级</li>
            </ul>
          </div>
        </div>
      </section>
      
      <section class="about-section">
        <h2>关于我</h2>
        <p>我是一名热爱编程的大学生，对前端开发和计算机网络有着浓厚的兴趣。平时喜欢学习新技术，探索各种编程框架。</p>
        <p>在课余时间，我喜欢阅读技术书籍、参与开源项目和参加编程竞赛，不断提升自己的编程技能。</p>
      </section>
      
      <section class="skills-section">
        <h2>我的技能</h2>
        <div class="skills-grid">
          <div class="skill-item">
            <h3>前端技术</h3>
            <ul>
              <li>HTML5/CSS3</li>
              <li>JavaScript</li>
              <li>Vue.js</li>
              <li>React</li>
            </ul>
          </div>
          <div class="skill-item">
            <h3>后端技术</h3>
            <ul>
              <li>Node.js</li>
              <li>Express</li>
              <li>MySQL</li>
            </ul>
          </div>
          <div class="skill-item">
            <h3>其他技能</h3>
            <ul>
              <li>Git</li>
              <li>Linux</li>
              <li>算法与数据结构</li>
            </ul>
          </div>
        </div>
      </section>
      
      <section class="contact-section">
        <h2>联系方式</h2>
        <p>如果您有任何问题或想了解更多信息，欢迎随时联系我！</p>
        <div class="contact-info">
          <p><strong>邮箱：</strong>example@neu.edu.cn</p>
          <p><strong>电话：</strong>138-0000-0000</p>
        </div>
      </section>
    </main>
    <footer class="footer">
      <p>&copy; 2025 个人介绍页面 | 使用 Vue 3 构建</p>
    </footer>
  </div>
</template>

<script setup>
  // 这里可以添加组件的逻辑代码
</script>

<style scoped>
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

.header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.header h1 {
  font-size: 2.5rem;
  color: #42b883;
  margin: 0;
}

.main-content {
  margin-bottom: 40px;
}

.intro-section {
  margin-bottom: 40px;
}

.profile-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-picture {
  flex-shrink: 0;
}

.profile-info h2 {
  margin-top: 0;
  color: #42b883;
}

.profile-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-info li {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.about-section,
.skills-section,
.contact-section {
  margin-bottom: 40px;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

h2 {
  color: #42b883;
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.skill-item {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
}

.skill-item h3 {
  margin-top: 0;
  color: #333;
  font-size: 1.2rem;
}

.skill-item ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}

.skill-item li {
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}

.skill-item li:last-child {
  border-bottom: none;
}

.contact-info {
  margin-top: 20px;
}

.contact-info p {
  margin: 10px 0;
}

.footer {
  text-align: center;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  margin-top: 40px;
}

.footer p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  
  .header h1 {
    font-size: 2rem;
  }
  
  .profile-container {
    flex-direction: column;
    text-align: center;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
}
</style>